# coding=utf-8

import traceback

from django.http import JsonResponse
from lib.common import AbstractHandler

from lib.sms import sender
from services.datamodel.share import BusinessCode


class BaseHandler(AbstractHandler):

    AUTH_TYPE_TEACHER = 'teacher'
    AUTH_TYPE_PARENT = 'parent'
    AUTH_TYPE_LIST = (AUTH_TYPE_TEACHER, AUTH_TYPE_PARENT)

    AUTH_TYPE_DICT = {
        # AUTH_TYPE_TEACHER: {'data_model': mm_Teacher, 'title': '老师'},
        # AUTH_TYPE_PARENT: {'data_model': mm_Parent,  'title': '家长'}
    }

    def __init__(self, app_logger):
        AbstractHandler.__init__(self, app_logger)
